package com.skiving.cloud.admin.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author skivingcloud
 * @since 2025-03-08
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table("sys_dictionary")
public class SysDictionary implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("字典编码")
    private String classCode;

    @ApiModelProperty("字典名称")
    private String className;

    @ApiModelProperty("字典值")
    private String dataCode;

    @ApiModelProperty("字典值描述")
    private String dataName;

    @ApiModelProperty("排序")
    private Integer dataOrder;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态")
    private String state;

    /**
     * 上级id
     */
    @ApiModelProperty("上级id")
    private String parentId;

    @Column(ignore = true)
    private String parentName;
}
